﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="SystemFramework.aspx.cs" Inherits="Page_SystemFramework" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
<script type="text/javascript">
    function showdialog(SuperiorID,id)
    {
        var arguments=new Array(SuperiorID,id);
        var m = window.showModalDialog("SystemFrameworkEdit.aspx?sid="+SuperiorID+"&id="+id, "dialogHeight:400px,center:yes,resizable:no,status:no");
        if (m != null) 
        {
            document.getElementById("<%=HiddenField2.ClientID %>").value = "1";
            window.location.href = window.location.href;
            //window.location .reload ();
            //window.location.href = 'http://sina.com.cn'; // "SystemFramework.aspx?f=1";
            //alert("123");
        }
    }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <div align="center" style="font-size: x-large">
        层级管理</div>
    <table style="width: 100%;">
        <tr>
            <td width="30%" align="left" style="vertical-align:top">
                <asp:TreeView ID="TreeView1" runat="server" ShowLines="True" 
                    onselectednodechanged="TreeView1_SelectedNodeChanged">
                    <SelectedNodeStyle BorderColor="Red" BorderStyle="Dotted" Font-Bold="True" 
                        ForeColor="#CC3300" Height="25px" />
                </asp:TreeView>             
                <asp:HiddenField ID="HiddenField1" runat="server" />
            </td>
            <td align="left" style="vertical-align:top">
                <asp:Literal ID="Literal1" runat="server"></asp:Literal>
                <br />
                <asp:Button ID="Button1" runat="server" Text="添加下级目标" />
                <br />
                <br />
                <div id="divShow" runat="server">
                    <table style="width: 50%;">
                        <tr>
                            <td align="right" style="padding-right: 20px">
                                名称</td>
                            <td>
                                <asp:TextBox ID="TextBox1" runat="server" ReadOnly="True" Enabled="False"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="padding-right: 20px">
                                联系人</td>
                            <td>
                                <asp:TextBox ID="TextBox2" runat="server" ReadOnly="True"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="padding-right: 20px">
                                单位</td>
                            <td>
                                <asp:TextBox ID="TextBox3" runat="server" ReadOnly="True"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="padding-right: 20px">
                                地址</td>
                            <td>
                                <asp:TextBox ID="TextBox4" runat="server" ReadOnly="True"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="padding-right: 20px">
                                联系电话</td>
                            <td>
                                <asp:TextBox ID="TextBox5" runat="server" ReadOnly="True"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="padding-right: 20px">
                                测点上限</td>
                            <td>
                                <asp:TextBox ID="TextBox10" runat="server" Enabled="False"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="padding-right: 20px">
                                当前测点数</td>
                            <td>
                                <asp:TextBox ID="TextBox11" runat="server" Enabled="False"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="padding-right: 20px">
                                备注</td>
                            <td>
                                <asp:TextBox ID="TextBox6" runat="server" ReadOnly="True"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="padding-right: 20px">
                                操作员</td>
                            <td>
                                <asp:TextBox ID="TextBox7" runat="server" ReadOnly="True" Enabled="False"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="padding-right: 20px">
                                创建时间</td>
                            <td>
                                <asp:TextBox ID="TextBox8" runat="server" ReadOnly="True" Enabled="False"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="padding-right: 20px">
                                最后编辑时间</td>
                            <td>
                                <asp:TextBox ID="TextBox9" runat="server" ReadOnly="True" Enabled="False"></asp:TextBox>
                            </td>
                        </tr>
                    </table>    
                    <br />
                    <asp:Button ID="Button2" runat="server" Text="编辑" Width="109px" />
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="Button3" runat="server" Text="删除" Width="90px" 
                        onclick="Button3_Click" 
                        onclientclick="if(!window.confirm('确定删除此用户')) return;" />
                    <asp:HiddenField ID="HiddenField2" runat="server" />
                </div>                
            </td>
        </tr>
    </table>    
</asp:Content>

